/**
 * Copyright(c) 2010 Ceno Techonologies Co., Ltd.
 *
 * History:
 *   15-1-9 下午4:20 Created by lyyang
 */
package com.jade.bss.business.groupon.dianping.pdu;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 响应类
 *
 * @author <a href="mailto:lyyang@ceno.cn">lyyang</a>
 * @version 1.0 15-1-9 下午4:20
 */
public class Response
{
    private String status;

    private Error error;

    @JsonProperty ("total_count")
    private long totalCount;

    private long count;

    private List<Deal> deals;

    public long getCount()
    {
        return count;
    }

    public void setCount(long count)
    {
        this.count = count;
    }


    public long getTotalCount()
    {

        return totalCount;
    }

    public void setTotalCount(long totalCount)
    {
        this.totalCount = totalCount;
    }

    public String getStatus()
    {
        return status;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public List<Deal> getDeals()
    {
        return deals;
    }

    public void setDeals(List<Deal> deals)
    {
        this.deals = deals;
    }

    public Error getError()
    {
        return error;
    }

    public void setError(Error error)
    {
        this.error = error;
    }

    public boolean isSuccess(){
        return "OK".equals(status);
    }
}
